package com.ethan.limit.controller;

import com.ethan.limit.annotions.RateLimiter;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Description of the class.
 *
 * @author ethan
 * @version 1.0.0
 * @since 2024-03-26
 */
@RestController
public class TestController {

    @GetMapping("test")
    @RateLimiter(time = 20,count =2)
    public String test(){
        return "test";
    }
}
